<template>
  <div class="banner">
    <el-carousel height="270px">
      <el-carousel-item v-for="item in img" :key="item.id">
        <img :src="item.src" alt="">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  data() {
    return {
      img: [{
        id: 1,
        src: require('@/assets/lunbo1.jpg')
      }, {
        id: 2,
        src: require('@/assets/lunbo2.jpg')
      }, {
        id: 3,
        src: require('@/assets/lunbo3.jpg')
      }]
    }
  }
}
</script>

<style lang="stylus" scoped>
  .banner
    z-index: 2000
    margin: 0 20px
    height: 270px
    & img
      width: 100%
      border-radius: 10px
      cursor: pointer
</style>
